//
//  XPAppConfig.swift
//  MTInternational
//
//  Created by xiaopin on 2019/10/22.
//  Copyright © 2019 scoresdata.net. All rights reserved.
//

import UIKit
import HandyJSON

class XPAppConfig: HandyJSON {
    /// 状态
    var shStatus:Bool = false
    /// 版本
    var shVer:String?
    /// 是否启用QQ,微信，微博登录
    var enableQQLogin:Bool = false
    var enableWXLogin:Bool = false
    var enableWBLogin:Bool = false
    /// 默认icon_default
    var iconName:String?
    /// 图片参数
    var imageParam:XPAliyunImageParam?
    
    
    required init() { }
    
    func mapping(mapper: HelpingMapper) {
        mapper <<< self.iconName <-- "icon_name"
        mapper <<< self.enableQQLogin <-- "qq_login"
        mapper <<< self.enableWXLogin <-- "wx_login"
        mapper <<< self.enableWBLogin <-- "wb_login"
        mapper <<< self.imageParam <-- "aliyun_picture_param"
    }
}
